
class Oil_Price{
  //属性id，名字与成绩
  String? city;
  String? o_92h;
  String? o_95h;
  String? o_98h;
  String? o_0h;
  //构造方法
  Oil_Price({
    this.city,
    this.o_92h,
    this.o_95h,
    this.o_98h,
    this.o_0h
  });
  //JSON解析工厂类，使用字典数据为对象初始化赋值
  factory Oil_Price.fromJson(Map<String, dynamic> parsedJson){
    return Oil_Price(
      city: parsedJson['city'],
      o_92h : parsedJson['92h'],
      o_95h : parsedJson ['95h'],
      o_98h : parsedJson['98h'],
      o_0h : parsedJson['0h'],
    );
  }
}